Fluent Assertions Documentation
FluentAssertions Assembly / FluentAssertions.Primitives Namespace / EnumAssertions<TEnum,TAssertions> Class / Match Method
The predicate which must be satisfied by the TEnum.
A formatted phrase as is supported by System.String.Format(System.String,System.Object[]) explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically.
Zero or more objects to format using the placeholders in because.
In This Topic
    Match Method (EnumAssertions<TEnum,TAssertions>)
    In This Topic
    Asserts that the System.Enum matches the predicate.
    Syntax

    Parameters

    predicate
    The predicate which must be satisfied by the TEnum.
    because
    A formatted phrase as is supported by System.String.Format(System.String,System.Object[]) explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically.
    becauseArgs
    Zero or more objects to format using the placeholders in because.

    Return Value

    An FluentAssertions.AndConstraint<TParent> which can be used to chain assertions.
    Exceptions
    ExceptionDescription
    because
    predicate is a null reference (Nothing in Visual Basic).
    Permissions
    PermissionDescription
    because
    Example
    because
    Supported Frameworks
    because
    See Also